
const redisdb = require('../utils/redis');
const _ = require('lodash');
const dataRedis = redisdb.data;

const redisKey = {
    'zhangDieFu': 'szfr'    //涨跌
};

exports.getZhangDieByECodes = (eCodes) => {
    let command = [];
    let key = redisKey.zhangDieFu;
    _.each(eCodes, eCode => {
        command.push(['zscore', key, eCode]);
    });
    return dataRedis.multi(command).execAsync();
};